package com.kunlun.basedata.user.service;

import com.kunlun.basedata.user.model.vo.RoleVo;
import com.kunlun.common.model.Page;
import com.kunlun.basedata.user.model.RoleModel;

import java.util.List;

public interface IRoleService {

    public List<RoleVo> getRoleList(RoleModel roleMode) throws Exception;

    public Page getRolePage(RoleModel roleMode, int currentPage, int pageSize) throws Exception;

    public void addRole(RoleModel roleMode) throws Exception;

    public void updateRole(RoleModel roleMode) throws Exception;

    public void deleteRole(List<String> ids) throws Exception;

    public RoleModel getRoleById(String id) throws Exception;

    public RoleModel getRoleByUserId(String userId) throws Exception;
}
